axios.defaults.timeout = 30000;

axios.interceptors.request.use(config => {

	let requestData = new URLSearchParams()
	for (let key in config.data) {
		requestData.append(key, config.data[key])
	}
	var tokenData  = getToken();
	var uuid  = getUUId();
	 if(!stringEmpty(tokenData)){
		 requestData.append("token",tokenData)
	 }
	 if(!stringEmpty(uuid)){
	 		requestData.append("uuid",uuid)
	 }
	config.data = requestData;
	if(!config.headers){
		config.headers = {'Content-Type':'application/x-www-form-urlencoded'}
	}
	return config;
}, error => {
	return Promise.reject(error)
})
